var bcrypt = require('bcryptjs');
// var salt = bcrypt.genSaltSync(10);
// var hash = bcrypt.hashSync("damulovezdy", salt);
// console.log(hash)  //$2a$10$n/x2SxBIBAWgFiM4SNuDfez1XVPJ82YdPK9bu1UOcsGvGfivaQvrm

var hash = "$2a$10$n/x2SxBIBAWgFiM4SNuDfez1XVPJ82YdPK9bu1UOcsGvGfivaQvrm";
var result = bcrypt.compareSync("damulovezdy2", hash);
console.log(result)